package com.zc.androidwithflutter;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import java.util.HashMap;

public class MainActivity extends AppCompatActivity {
    HashMap<String, String> params = new HashMap<>();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.bt_go_flutterPage).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                params.put("one","从Android跳转到Flutter界面");
                PageRouter.openPageByUrl(MainActivity.this, PageRouter.OnePageUrl, params);
            }
        });
    }
}
